﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace ARPrimitiveType.Model
{
	[ActiveRecord]
	public class Company : ActiveRecordBase<Company>
	{
		[PrimaryKey(Generator = PrimaryKeyType.Identity)]
		public int Id { get; set; }

		[Property]
		public string Name { get; set; }

		[Property]
		public DateTime InceptionDate { get; set; }

		[Property(ColumnType = "ARPrimitiveType.Model.CompanyType, ARPrimitiveType")]
		public CompanyType CompanyType { get; set; }

		public override string ToString()
		{
			return this.Name;
		}
	}
}
